<template>
	<div>
		<div class="inner">
			<div class="inner_list">
				<div class="inner_left">
					<transition>
						<img src="../../assets/person.png" alt="" />
					</transition>
				</div>
				<div class="inner_right">
					<p style="color: rgba(0, 0, 0, 0.45)">今日新增用户</p>
					<p style="margin-top: 5px">0</p>
				</div>
			</div>
			<div class="inner_list">
				<div class="inner_left">
					<transition>
						<img src="../../assets/jifen.png" alt="" />
					</transition>
				</div>
				<div class="inner_right">
					<p style="color: rgba(0, 0, 0, 0.45)">今日新增会员</p>
					<p style="margin-top: 5px">0</p>
				</div>
			</div>
			<div class="inner_list">
				<div class="inner_left">
					<transition>
						<img src="../../assets/godpig.png" alt="" />
					</transition>
				</div>
				<div class="inner_right">
					<p style="color: rgba(0, 0, 0, 0.45)">今日营收额</p>
					<p style="margin-top: 5px">0</p>
				</div>
			</div>
			<div class="inner_list">
				<div class="inner_left">
					<transition>
						<img src="../../assets/money.png" alt="" />
					</transition>
				</div>
				<div class="inner_right">
					<p style="color: rgba(0, 0, 0, 0.45)">总盈利额</p>
					<p style="margin-top: 5px">0</p>
				</div>
			</div>
		</div>
		<div class="cont">
			<Visual />
			<Visual1 />
		</div>
		<div class="order">
			<el-table :data="tableData" class="table">
				<el-table-column prop="id" label="ID" width="180"> </el-table-column>
				<el-table-column prop="name" label="用户名"> </el-table-column>
				<el-table-column prop="amount1" sortable label="交易商品">
				</el-table-column>
				<el-table-column prop="amount2" sortable label="交易订单">
				</el-table-column>
				<el-table-column prop="amount3" sortable label="交易金额">
				</el-table-column>
				<el-table-column prop="amount4" sortable label="交易状态">
				</el-table-column>
			</el-table>
		</div>
	</div>
</template>

<script>
import Visual from './components/Visual'
import Visual1 from './components/Visual1'

export default {
	name: 'HomeH',
	components:{Visual,Visual1},
	data() {
		return {
			tableData: [{
				date: '2016-05-02',
				name: '王小虎',
				address: '上海市普陀区金沙江路 1518 弄'
			}, {
				date: '2016-05-04',
				name: '王小虎',
				address: '上海市普陀区金沙江路 1517 弄'
			}, {
				date: '2016-05-01',
				name: '王小虎',
				address: '上海市普陀区金沙江路 1519 弄'
			}, {
				date: '2016-05-03',
				name: '王小虎',
				address: '上海市普陀区金沙江路 1516 弄'
			}]
		}
	},
}
</script>

<style scoped>
.inner {
	width: 100%;
	height: 180px;
	display: flex;
	justify-content: space-around;
	align-items: center;
}

.inner .inner_list {
	width: 250px;
	height: 120px;
	background-color: white;
	display: flex;
	align-items: center;
	justify-content: space-around;
}

.inner_left {
	width: 50px;
	height: 50px;
	border-radius: 10px;
}

.inner_left>i {
	display: block;
	width: 100%;
	height: 80px;
}

.inner_left>img {
	width: 100%;
}

.inner_right>p {
	font-weight: 700;
	color: rgb(102, 102, 102);
}

.cont {
	padding: 50px;
	display: flex;
	justify-content: space-around;
	background-color: white;
	margin: 20px;
}

.order {
	margin: 20px;
}
</style>